package com.ming.dubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ming.dubbo.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Service(interfaceClass = TestService.class,version = "1.0-SNAPSHOT",timeout = 15000,filter = {"globalTraceFilter"})
@Component
@Slf4j
public class TestServiceImpl implements TestService {
    @Override
    public String test() {
        log.info("test service start..");
        String now = LocalDateTime.now().toString();
        log.info("test service end..");
        return now;
    }
}
